package com.tsing.wms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tsing.wms.entity.UserEntity;
import com.tsing.wms.vo.PageResultVO;
import com.tsing.wms.vo.req.*;
import com.tsing.wms.vo.resp.LoginRespVO;
import com.tsing.wms.vo.resp.UserRespVO;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author TheTsing
 * @since 2022-04-13
 */
public interface IUserService extends IService<UserEntity> {

    LoginRespVO login(LoginReqVO reqVO);

    void addUser(UserReqVO reqVO, HttpServletRequest request);

    void updateUser(UserReqVO reqVO, HttpServletRequest request);

    void updatePwd(PwdUpdateReqVO reqVO, HttpServletRequest request);

    void initPwd(IdReqVO reqVO, HttpServletRequest request);

    UserRespVO getUser(IdReqVO reqVO);

    PageResultVO<UserRespVO> userPage(UserPageReqVO reqVO);

    void deleteUser(IdsReqVO reqVO, HttpServletRequest request);

}
